package com.zxw.websocket.server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @projectName: erp-cloud
 * @package: com.zxw.websocket.server
 * @className: WebSocketConfig
 * @author: zhangxuewei
 * @description: 用于扫描带有@ServerEndpoint()注解的类
 * @date: 2023/11/1 14:08
 * @version: 1.0
 */

/**
 * WebSocket配置
 */
@Configuration
public class WebSocketConfig {

    @Bean
    public ServerEndpointExporter serverEndpointExporter () {
        return new ServerEndpointExporter();
    }

}